<template>
  <div class="shop-business-information">
    <div class="title">商家信息</div>
    <div class="text">
      <div class="name">
        <span>
          {{ businessInformation.name }}
        </span>
      </div>
      <div class="address">
        <span>地址：</span>
        <span>{{ businessInformation.address }}</span>
      </div>
      <div class="business-hours">
        <span>营业时间：</span>
        <span> [{{ businessInformation.openingHuors }}] </span>
      </div>
      <div class="business-license">
        <span>营业执照</span>
        <span class="arrow"></span>
      </div>
      <div class="permit">
        <span>餐饮服务许可证</span>
        <span class="arrow"></span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    businessInformation: {
      type: Object,
      default() {
        return {};
      },
    },
  },
};
</script>
<style lang="less" scoped>
.shop-business-information {
  background-color: #fff;
  font-size: 12px;
  .title {
    padding: 10px;
    border-bottom: 1px solid #eaeaea;
    font-size: 18px;
    color: #333333;
  }
  .text {
    padding: 0 10px;
    div {
      padding: 20px 0;
      border-bottom: 1px solid #eaeaea;
      color: #666666;
    }
    .business-license, .permit {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .business-license .arrow,
    .permit .arrow {
      display: inline-block;
      width: 10px;
      height: 10px;
      border-top: 2px solid #cccccc;
      border-left: 2px solid #cccccc;
      margin-right: 10px;
      transform: rotate(135deg);
    }
  }
}
</style>